﻿<%@ Import Namespace="Wikey.Utilities.Extensions"%>
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Wikey.Entity.Page>" %>
 <h3> <a id="PageAttachmentsLink" href="javascript:void(0);"> Attachments ( <%= ViewData.Model.Documents.Count %> )</a></h3>
<div id='status'/>
  <div id="PageAttachments" style="display:none"> 
    
            <ul>
                <% foreach (var document in ViewData.Model.Documents)
                   {%>
                <li>
                    <img src='<%= Html.ResolveUrl("~/Content/icons/book.png") %>' />
                    <a href="<%= Html.ResolveUrl("~/Document/Get/"+document.Filename)%>">
                        <%=document.Name %>
                        </a>
                </li>
                <% } %>
            </ul>
            </div>